<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" indent="yes"/>
	<xsl:template match="HeaderAndClass">
	
	
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<PropertyGroup>
		<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
		<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
		<ProductVersion>8.0.50727</ProductVersion>
		<SchemaVersion>2.0</SchemaVersion>
		<ProjectGuid>{<xsl:value-of select="HeaderInfo/Guid4"/>}</ProjectGuid>
		<ProjectTypeGuids><![CDATA[{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}]]></ProjectTypeGuids>
		<OutputType>Library</OutputType>
		<AppDesignerFolder>Properties</AppDesignerFolder>
		<RootNamespace><xsl:value-of select="HeaderInfo/ProjectName"/>.Web</RootNamespace>
		<AssemblyName><xsl:value-of select="HeaderInfo/ProjectName"/>.Web</AssemblyName>
	</PropertyGroup>
	<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
		<DebugSymbols>true</DebugSymbols>
		<DebugType>full</DebugType>
		<Optimize>false</Optimize>
		<OutputPath>bin\</OutputPath>
		<DefineConstants>DEBUG;TRACE</DefineConstants>
		<ErrorReport>prompt</ErrorReport>
		<WarningLevel>4</WarningLevel>
		</PropertyGroup>
	<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
		<DebugType>pdbonly</DebugType>
		<Optimize>true</Optimize>
		<OutputPath>bin\</OutputPath>
		<DefineConstants>TRACE</DefineConstants>
		<ErrorReport>prompt</ErrorReport>
		<WarningLevel>4</WarningLevel>
	</PropertyGroup>
	
	
	<ItemGroup>
		<Reference Include="Iesi.Collections">
			<Name>Iesi.Collections</Name>
			<HintPath><xsl:value-of select="HeaderInfo/ref1"/>\bin\net-2.0\Iesi.Collections.dll</HintPath>
		</Reference>
		<Reference Include="NHibernate">
			<Name>NHibernate</Name>
			<HintPath><xsl:value-of select="HeaderInfo/ref1"/>\bin\net-2.0\NHibernate.dll</HintPath>
		</Reference>
		<Reference Include="System" />
		<Reference Include="System.Data" />
		<Reference Include="System.Drawing" />
		<Reference Include="System.Web" />
		<Reference Include="System.Xml" />
		<Reference Include="System.Configuration" />
		<Reference Include="System.Web.Services" />
		<Reference Include="System.EnterpriseServices" />
		<Reference Include="System.Web.Mobile" />
	</ItemGroup>
	

	
	<ItemGroup>
		<Content Include="Default.aspx" />
		<xsl:for-each select="Classes/Class">
		<Content><xsl:attribute name="Include"><xsl:value-of select="Name"/>.aspx</xsl:attribute></Content>
		</xsl:for-each>
		<Content Include="Web.config" />
	</ItemGroup>
	
	<ItemGroup>

		<xsl:for-each select="Classes/Class">
	<Compile><xsl:attribute name="Include"><xsl:value-of select="Name"/>.aspx.cs</xsl:attribute>
	<SubType>ASPXCodeBehind</SubType>
	<DependentUpon><xsl:value-of select="Name"/>.aspx</DependentUpon>
	</Compile>
	<Compile><xsl:attribute name="Include"><xsl:value-of select="Name"/>.aspx.designer.cs</xsl:attribute>
	<DependentUpon><xsl:value-of select="Name"/>.aspx</DependentUpon>
	</Compile>
		</xsl:for-each>
	


	
	<Compile Include="Properties\AssemblyInfo.cs" />
	<Compile Include="NHibernate\SessionModule.cs" />
	</ItemGroup>


	<ItemGroup>
		<ProjectReference>
			<xsl:attribute name="Include">..\Core\<xsl:value-of select="HeaderInfo/ProjectName"/>.Core.csproj</xsl:attribute>
		<Project>{<xsl:value-of select="HeaderInfo/Guid1"/>}</Project>
		<Name><xsl:value-of select="HeaderInfo/ProjectName"/>.Core</Name>
		</ProjectReference>
		<ProjectReference>
			<xsl:attribute name="Include">..\Data\<xsl:value-of select="HeaderInfo/ProjectName"/>.Data.csproj</xsl:attribute>
		<Project>{<xsl:value-of select="HeaderInfo/Guid2"/>}</Project>
		<Name><xsl:value-of select="HeaderInfo/ProjectName"/>.Data</Name>
		</ProjectReference>
	</ItemGroup>

	<xsl:comment><![CDATA[
		To modify your build process, add your task inside one of the targets below and uncomment it. 
		Other similar extension points exist, see Microsoft.Common.targets.
		<Target Name="BeforeBuild">
		</Target>
		<Target Name="AfterBuild">
		</Target>]]>
	</xsl:comment>
	<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
<![CDATA[<ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
	<WebProjectProperties>
	  <UseIIS>False</UseIIS>
	  <AutoAssignPort>True</AutoAssignPort>
	  <DevelopmentServerPort>57476</DevelopmentServerPort>
	  <DevelopmentServerVPath>/</DevelopmentServerVPath>
	  <IISUrl>
	  </IISUrl>
	  <NTLMAuthentication>False</NTLMAuthentication>
	</WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>]]>
</Project>
	
	
	</xsl:template>
</xsl:stylesheet>